package com.neuedu.springmvc.controller;

import org.springframework.web.HttpRequestHandler;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.concurrent.ConcurrentMap;

/**
 * 项目：springmvc-java4
 * 创建时间：  2022-03-22   13:52
 * 作者 :jshand
 * 描述 :
 */
public class DeptController implements Controller {

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        System.out.println("DeptController  Controller ");

        PrintWriter out = response.getWriter();
        out.write("Controller");
        out.flush();
        out.close();

        return null;
    }
}
